package com.bootdo.fx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.fx.dao.UserShopCartDao;
import com.bootdo.fx.domain.UserShopCartDO;
import com.bootdo.fx.service.UserShopCartService;



@Service
public class UserShopCartServiceImpl implements UserShopCartService {
	@Autowired
	private UserShopCartDao userShopCartDao;
	
	@Override
	public UserShopCartDO get(Long cartId){
		return userShopCartDao.get(cartId);
	}
	
	@Override
	public List<UserShopCartDO> list(Map<String, Object> map){
		return userShopCartDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return userShopCartDao.count(map);
	}
	
	@Override
	public int save(UserShopCartDO userShopCart){
		return userShopCartDao.save(userShopCart);
	}
	
	@Override
	public int update(UserShopCartDO userShopCart){
		return userShopCartDao.update(userShopCart);
	}
	
	@Override
	public int remove(Long cartId){
		return userShopCartDao.remove(cartId);
	}
	
	@Override
	public int batchRemove(Long[] cartIds){
		return userShopCartDao.batchRemove(cartIds);
	}
	
}
